import formDesigner from '@common/form-designer';
import formrender from './components/pageLayout-form-render';
import formindex from './components/index';
import inputwidget from './components/input-widget-rewrite';

import { merge } from 'lodash-es';

const replaceComponent = {
  'src/form-designer/views/pageLayout-form-render.vue': formrender,
  'src/form-designer/extension/form-render/index.vue': formindex,
  'src/form-designer/extension/form-designer/rewrite-field-widget/input-widget-rewrite.vue': inputwidget,

};

Object.keys(replaceComponent).forEach((key) => {
  merge(formDesigner.getExportResource(key), {
    default: replaceComponent[key]
  });
});

console.log('✨✨✨二开mpm模块', 'color: red;font-size:20px;');